/**
 * @author 
 * @time 2022-04-24 
 * @description 定义用户添加收货地址，删除收货地址，修改收货地址接口
 */

import Ajax from "./Ajax";


/**
 * 
 * @param {userId: string, name: string, phone: string, address: string, tag: string} data 
 * @returns 
 */
// 添加用户地址
function addaddressApi(data) {
    return Ajax({
        url: '/address/add',
        method: 'PUT',
        data
    })
}

// 获取用户收货地址
function getAddressApi(data) {
    return Ajax({
        url: '/address/:userid',
        method: 'GET',
        data
    })
}





export {
    addaddressApi,
    getAddressApi
}